package com.smedi.ismedi.personnel.core.domain.aggregatemodel;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-7 16:08
 */
@Data
@Accessors(chain = true)
public class Person extends BasicField implements Serializable {
    private Long personId;

    private String lastName;

    private String gender;

    private String personType;

    private String personTypeMeaning;

    private boolean internal;

    private String employeeNum;

    private String userName;

    private String mobile;

    private String email;

    private String officeTelephone;

    private String idCard;

    private boolean modifyIdCard;

    private List<Assignment> internalAssignments = new ArrayList<>();

    private List<Assignment> projectAssignments = new ArrayList<>();

    private ProfileImage profileImage;

    private Signature signature;

    private String status;

    private String statusMeaning;

    private String imageUUID;

    private Long personOrder;

    private boolean deleted;

    public String getImageUUID() {
        if (null != this.profileImage) {
            return this.profileImage.getUuid();
        }
        return null;
    }
}
